/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmHistDatSocEcoDet.java
 *
 * Created on 03-sep-2011, 20:03:22
 */

package GUI;

import Negocio.ClienteDatSocEco;
import TablasAuxiliares.TAActividadesEmpresas;
import TablasAuxiliares.TACargosEmpresa;
import TablasAuxiliares.TAProfesiones;
import TablasAuxiliares.TASituacionesLaborales;
import Util.FormatoFecha;
import Util.Varios;
import java.util.Date;

/**
 *
 * @author Javi
 */
public class frmHistDatSocEcoDet extends javax.swing.JDialog {
    //Indica la operación que se está realizando
    private char _cOperacion;
    //Referencia al formulario padre
    private frmHistDatSocEco _frmPadre;
    //Referencia al objeto de datos principal
    private ClienteDatSocEco _oClienteDatSocEco;

    /** Creates new form frmHistDatSocEcoDet */
    public frmHistDatSocEcoDet(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    public frmHistDatSocEcoDet(frmHistDatSocEco parent, boolean modal) {
        super(parent, modal);
        this._frmPadre = parent;
        //Inicializo la referencia al objeto de datos del formulario padre.
        this._oClienteDatSocEco = parent.getoObjetoDatos();
        initComponents();
        //Los combos se cargan a partir de las tablas 1 SOLA VEZ, al crear el formulario.
        this.cargarCombos();
    }


    /*
     * Inicializa los combos a partir de las tablas auxiliares en forma "codigo - descripcion"
     */
    private void cargarCombos(){
        //Datos socioeconómicos
        Varios.cargaCombo (jCBCodProfesion, new TAProfesiones());
        Varios.cargaCombo (jCBSitLaboral, new TASituacionesLaborales());
        Varios.cargaCombo (jCBActivEmp, new TAActividadesEmpresas());
        Varios.cargaCombo (jCBCargoEmp, new TACargosEmpresa());
    }

    public void inicializaFormulario ( char cOperacion ){
        //Inicializo el código de operación
        this._cOperacion = cOperacion;
        //Carga los datos de la clase
        this.claseAPantalla();
        //Inicializa los controles necesarios
        this.inicializaControles();
    }

    /*
     * Este método carga los atributos de la clase los controles del formulario de entrada.
     */
    private void claseAPantalla(){
        //Clase ClienteDatSocioEco
        this.jTFIdClienteSocEco.setText( Integer.toString( this._oClienteDatSocEco.getiIdCliente()));
        //Controlo si el campo clave fecha viene a nulo (solo en el insert) y en ese caso pongo la fecha de hoy
        this.jFTFFechaSocEco.setValue ( (this._oClienteDatSocEco.getdFecha()== null)? new Date() : this._oClienteDatSocEco.getdFecha());
        Varios.seleccionaItemCombo (jCBCodProfesion, this._oClienteDatSocEco.getsCodProfesion() );
        Varios.seleccionaItemCombo (jCBSitLaboral, this._oClienteDatSocEco.getsCodSitLaboral());
        Varios.seleccionaItemCombo (jCBActivEmp, this._oClienteDatSocEco.getsCodActivEmp());
        Varios.seleccionaItemCombo (jCBCargoEmp, this._oClienteDatSocEco.getsCargoEmp());
        this.jFTFAntiguedad.setValue (this._oClienteDatSocEco.getiAntiguedad());
        this.jFTFCambiosTrabajo.setValue (this._oClienteDatSocEco.getiCambiosTrabajo());
        this.jFTFSueldoAnuFijo.setValue(this._oClienteDatSocEco.getiSueldoAnuFijo());
        this.jFTFSueldoAnuVar.setValue( this._oClienteDatSocEco.getiSueldoAnuVar());
        this.jFTFOtrosIngresosAnu.setValue( this._oClienteDatSocEco.getiOtrosIngresosAnu());
        this.jFTFImpGastosMen.setValue( this._oClienteDatSocEco.getiImpGastosMen());
        this.jFTFImpHipAlqMen.setValue( this._oClienteDatSocEco.getiImpHipAlqMen());
        this.jFTFCoefCajaMen.setValue( this._oClienteDatSocEco.getiCoefCajaMen());
        this.jCkBViviendaPropia.setSelected(this._oClienteDatSocEco.isbViviendaPropia());
        this.jFTFValorVivienda.setValue(this._oClienteDatSocEco.getiValorVivienda());
        this.jCkBOtrasProp.setSelected(this._oClienteDatSocEco.isbOtrasProp() );
        this.jFTFValorOtrasProp.setValue(this._oClienteDatSocEco.getiValorOtrasProp());
    }

    /*
     * Este método carga y habilita/inhabilita los controles que sean necesarios
     */
    private void inicializaControles (){
        //Actualizo el título de la ventana en función de la operación.
        this.setTitle( this._frmPadre.getTitle() + " - " + Varios.getLiteralOperacion(this._cOperacion) );
        //Desactivar los controles en la baja y en la consulta y activarlos en el alta o la modificación
        if ( this._cOperacion == 'C' || this._cOperacion == 'B')
            Varios.SetEnabledControles( this.jPanel2, false );
        else
            Varios.SetEnabledControles( this.jPanel2, true );
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jCBCodProfesion = new javax.swing.JComboBox();
        jCBSitLaboral = new javax.swing.JComboBox();
        jCBActivEmp = new javax.swing.JComboBox();
        jCBCargoEmp = new javax.swing.JComboBox();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        try{
            jFTFFechaSocEco = new javax.swing.JFormattedTextField( new FormatoFecha() );
            jLabel37 = new javax.swing.JLabel();
            jTFIdClienteSocEco = new javax.swing.JTextField();
            jFTFAntiguedad = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFSueldoAnuVar = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFOtrosIngresosAnu = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFImpGastosMen = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFCoefCajaMen = new javax.swing.JFormattedTextField();
            jFTFImpHipAlqMen = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFValorOtrasProp = new javax.swing.JFormattedTextField();
            jFTFValorVivienda = new javax.swing.JFormattedTextField();
            jFTFSueldoAnuFijo = new javax.swing.JFormattedTextField(new Integer(0));
            jFTFCambiosTrabajo = new javax.swing.JFormattedTextField(new Integer(0));
            jCkBViviendaPropia = new javax.swing.JCheckBox();
            jCkBOtrasProp = new javax.swing.JCheckBox();
            jButtonAceptar = new javax.swing.JButton();

            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

            jLabel11.setText("Profesión");

            jLabel21.setText("Situación laboral");

            jLabel22.setText("Años antigüedad empresa");

            jLabel23.setText("Actividad empresa");

            jLabel24.setText("Cargo");

            jLabel25.setText("Sueldo bruto anual fijo");

            jLabel26.setText("Sueldo bruto anual variable");

            jLabel27.setText("Otros ingresos anuales");

            jCBCodProfesion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

            jCBActivEmp.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

            jCBCargoEmp.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

            jLabel28.setText("Importe hipoteca/alquiler mensual");

            jLabel29.setText("Importe gastos mensuales");

            jLabel30.setText("Coeficiente caja mensual");

            jLabel31.setText("Cambios trabajo");

            jLabel33.setText("Valor vivienda");

            jLabel35.setText("Valor otras propiedades");

            jLabel45.setText("Fecha actualización");

        }catch (Exception e){
            e.printStackTrace();
        }

        jLabel37.setText("IdCliente");

        jTFIdClienteSocEco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTFIdClienteSocEcoActionPerformed(evt);
            }
        });

        jFTFAntiguedad.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFSueldoAnuVar.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFOtrosIngresosAnu.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFImpGastosMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFCoefCajaMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFImpHipAlqMen.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFValorOtrasProp.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFValorVivienda.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFSueldoAnuFijo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jFTFCambiosTrabajo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jCkBViviendaPropia.setText("Vivienda propia");

        jCkBOtrasProp.setText("Otras propiedades");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTFIdClienteSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                        .addComponent(jLabel45)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jFTFFechaSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel27)
                                    .addComponent(jLabel25)
                                    .addComponent(jLabel26))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98, Short.MAX_VALUE)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jFTFOtrosIngresosAnu, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFTFSueldoAnuFijo, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFTFSueldoAnuVar, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jLabel11)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel22)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 153, Short.MAX_VALUE)
                                .addComponent(jFTFAntiguedad, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel31)
                                .addGap(18, 18, 18)
                                .addComponent(jFTFCambiosTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel21)
                                .addGap(68, 68, 68)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jCBSitLaboral, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jCBCodProfesion, 0, 176, Short.MAX_VALUE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel23)
                                    .addComponent(jLabel24))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jCBCargoEmp, 0, 216, Short.MAX_VALUE)
                                    .addComponent(jCBActivEmp, javax.swing.GroupLayout.Alignment.LEADING, 0, 216, Short.MAX_VALUE))))))
                .addGap(38, 38, 38)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel33)
                            .addComponent(jLabel35)
                            .addComponent(jCkBViviendaPropia)
                            .addComponent(jCkBOtrasProp))
                        .addGap(78, 78, 78)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jFTFValorVivienda, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jFTFValorOtrasProp, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel28)
                            .addComponent(jLabel29)
                            .addComponent(jLabel30))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jFTFImpGastosMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jFTFImpHipAlqMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jFTFCoefCajaMen, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(175, 175, 175))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTFIdClienteSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jFTFFechaSocEco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel45))
                    .addComponent(jLabel37))
                .addGap(28, 28, 28)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel28)
                            .addComponent(jFTFImpHipAlqMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel29)
                            .addComponent(jFTFImpGastosMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel30)
                            .addComponent(jFTFCoefCajaMen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(48, 48, 48)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel33)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jCkBOtrasProp)
                                .addGap(8, 8, 8)
                                .addComponent(jLabel35))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jFTFValorVivienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(36, 36, 36)
                                .addComponent(jFTFValorOtrasProp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11)
                            .addComponent(jCBCodProfesion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCBSitLaboral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel22)
                            .addComponent(jFTFAntiguedad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel23)
                            .addComponent(jCBActivEmp, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCkBViviendaPropia))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel24)
                            .addComponent(jCBCargoEmp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(17, 17, 17)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel31)
                            .addComponent(jFTFCambiosTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jFTFSueldoAnuFijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jFTFSueldoAnuVar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jFTFOtrosIngresosAnu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel25)
                                .addGap(13, 13, 13)
                                .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel27)))))
                .addContainerGap(42, Short.MAX_VALUE))
        );

        jButtonAceptar.setText("Aceptar");
        jButtonAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(371, 371, 371)
                        .addComponent(jButtonAceptar)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonAceptar)
                .addGap(37, 37, 37))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTFIdClienteSocEcoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteSocEcoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTFIdClienteSocEcoActionPerformed

    private void jButtonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarActionPerformed
        setVisible(false);
}//GEN-LAST:event_jButtonAceptarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAceptar;
    private javax.swing.JComboBox jCBActivEmp;
    private javax.swing.JComboBox jCBCargoEmp;
    private javax.swing.JComboBox jCBCodProfesion;
    private javax.swing.JComboBox jCBSitLaboral;
    private javax.swing.JCheckBox jCkBOtrasProp;
    private javax.swing.JCheckBox jCkBViviendaPropia;
    private javax.swing.JFormattedTextField jFTFAntiguedad;
    private javax.swing.JFormattedTextField jFTFCambiosTrabajo;
    private javax.swing.JFormattedTextField jFTFCoefCajaMen;
    private javax.swing.JFormattedTextField jFTFFechaSocEco;
    private javax.swing.JFormattedTextField jFTFImpGastosMen;
    private javax.swing.JFormattedTextField jFTFImpHipAlqMen;
    private javax.swing.JFormattedTextField jFTFOtrosIngresosAnu;
    private javax.swing.JFormattedTextField jFTFSueldoAnuFijo;
    private javax.swing.JFormattedTextField jFTFSueldoAnuVar;
    private javax.swing.JFormattedTextField jFTFValorOtrasProp;
    private javax.swing.JFormattedTextField jFTFValorVivienda;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JTextField jTFIdClienteSocEco;
    // End of variables declaration//GEN-END:variables

}
